package InterfaceBlogDemo.AnimalFile;

public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog("小狗");
        Duck duck = new Duck("小鸭子");
        dog.run();
        dog.swim();
        //dog.fly();
        duck.run();
        duck.swim();
        duck.fly();
    }
}
